package br.edu.sistemaacademico.templateMethod;



import java.sql.SQLException;

import client.ClientCommand;

import br.edu.sistemaacademico.builder.DisciplinaDAO;
import br.edu.sistemaacademico.builder.HistoricoDAO;
import br.edu.sistemaacademico.pojo.Classe;
import br.edu.sistemaacademico.pojo.Disciplina;
import br.edu.sistemaacademico.pojo.Historico;

public class VereficaDependeciaDisciplina extends TemplateDependencia{

	@Override
	public Object dependencia(Object o) {
		Disciplina disciplina = (Disciplina) o;
		Classe classe = (Classe) ClientCommand.carregaObjeto("ClasseService", "classe"+disciplina.getId(), "");
		return ClientCommand.carregaObjeto("HistoricoService", "codigo"+classe.getId(), "");
	}

}
